package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.FamilyMember;
import com.zzyl.nursing.dto.BoundFamlyDto;
import com.zzyl.nursing.dto.UserLoginRequestDto;
import com.zzyl.nursing.vo.FamilyElderByPageVo;
import com.zzyl.nursing.vo.FamilyElderVo;
import com.zzyl.nursing.vo.ByDayVo;
import com.zzyl.nursing.vo.LoginVo;

import java.util.List;


import java.util.List;

/**
 * 老人家属Service接口
 * 
 * @author ruoyi
 * @date 2024-09-19
 */
public interface IFamilyMemberService extends IService<FamilyMember>
{

    /**
     * 小程序登录
     * @param dto
     * @return
     */
    LoginVo login(UserLoginRequestDto dto);


    /**
     * 按天查
     * @param functionId
     * @param startTime
     * @param endTime
     * @param iotId
     * @return
     */
    List<ByDayVo> QueryStatisticsByDay(String functionId, Long startTime, Long endTime, String iotId);


    /**
     * 按周查
     * @param functionId
     * @param startTime
     * @param endTime
     * @param iotId
     * @return
     */
    List<ByDayVo> QueryStatisticsByWeek(String functionId, Long startTime, Long endTime, String iotId);

    void boundFamly(BoundFamlyDto boundFamlyDto);

    List<FamilyElderVo> familyElderList();

    Page<FamilyElderByPageVo> familyElderListByPage(Integer pageNum, Integer pageSize);
}
